<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>list</title>
<link rel="stylesheet" type="text/css" href="resources/images/total.css" />
<script language="JavaScript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script language="javascript" src="resources/js/total.js"></script>
<script language="JavaScript">
	function del_article(id){
		if(confirm('要删除？')){
			$.get("<{$domain}>?act=article.del", {artclieid:id},
			function(data){
				if(data == 1){
					alert('删除成功');
					window.location.reload();
				}else{
					alert('删除失败');
				}
			    
			});
		}
	}
</script>
</head>
<body class="idx_main">
<div class="main_cnt">
<div class="r_cnt_t"><div class="r_cnt_lft">信息列表</div><div class="r_cnt_rgt"><select name="sel1"><option>跳转分类到</option><option>信息添加到</option></select></div></div>
<div class="rgt_ct">
<table class="rgt_tab" width="100%" cellpadding="0" cellspacing="0">
<tr class="tab_th">
	<td width="5%">选择</td>
	<td width="4%">序号</td>
	<td width="31%">信息名称</td>
	<td width="8%">推荐</td>
	<td width="8%">发布人</td>
	<td width="17%">发布时间</td>
	<td width="20%">操作</td>
</tr>

<{section name=i loop=$out.data}> 
<tr>
	<td><input type="checkbox" name="chkbox" value="<{$out.data[i].id}>" onclick="checkItem(this,'chkboxall')"/></td>
	<td><{$out.data[i].id}></td>
	<td><{$out.data[i].title}></td>
	<td><{if $out.data[i].pick eq 1}>√<{else}>X<{/if}></td>
	<td><{$out.data[i].author}></td>
	<td><{$out.data[i].add_time|date_format:"%Y-%m-%d %H:%M:%S"}> </td>
	<td><a href="<{$domain}>?act=article.edit&id=<{$out.data[i].id}>">编辑</a> | <a href="javascript:void(0)" onclick="del_article(<{$out.data[i].id}>)">删除</a></td>
</tr>
<{/section}>

</table>
<div class="r_cnt_btn">
	<div class="r_cnt_lf"><input type="checkbox" name="chkboxall" onclick="checkAll(this,'chkbox')" value="0"/> 选择全部</div>
	<!--<div class="r_cnt_rgt"><select name="sel1"><option>跳转分类到</option><option>信息添加到</option></select></div>-->
</div>
</div>
<!--<div class="c_r_btn"><div class="r_cnt_lf">页次 1/1 每页 25 条 共 9 页</div><div class="r_cnt_rgt"><a href="#">首页</a> 上页 下页 末页 到 <input type="text" name="yema" style="width:20px;"/> 页</div></div>-->
<div class="c_r_btn"><{$out.pagestring}></div>
</div>
</body>
</html>